using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DTO;
using BUSLayer;

namespace PresentationLayer
{
    public partial class frmThamSo : Form
    {
        public frmThamSo()
        {
            InitializeComponent();
        }

        private void lblTieuDe_Click(object sender, EventArgs e)
        {

        }

        private void frmThamSo_Load(object sender, EventArgs e)
        {

            ThamSoDto ts = new ThamSoDto();
            ts = ThamSoBus.LayThamSo();
            txtTyLePhuThu.Text = ts.TyLePhuThu.ToString();
            txtSoLuongLP.Text = ts.SoLuongLoaiPhong.ToString();
            txtSoLuongLK.Text = ts.SoLuongLoaiKhach.ToString();
            txtSoKhachPhong.Text = ts.SoLuongKhachToiDa.ToString();
            
        }

        private void btnDongY_Click(object sender, EventArgs e)
        {
            frmThayDoiThamSo frm = new frmThayDoiThamSo();
            frm.ShowDialog();
            frmThamSo_Load(sender, e);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}